﻿using QFramework;

namespace HKTools
{
    public class CMD_CloseGlobalPanel : AbstractCommand
    {
        HK_PanelName panelType;

        public CMD_CloseGlobalPanel(HK_PanelName _panelType)
        {
            panelType = _panelType;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_UISystem>().CloseGlobalPanel(panelType);
        }
    }
}